package com.learn.eduapi.entity;

import lombok.Data;

import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@Table(name="course_activity")
public class CourseActivity implements Serializable {

  private long id;
  private long courseId;
  private java.sql.Timestamp beginTime = Timestamp.valueOf(LocalDateTime.now());
  private java.sql.Timestamp endTime= Timestamp.valueOf(LocalDateTime.now());
  private long amount;
  private long stock;
  private long status;
  private long isDel;
  private String remark;
  private java.sql.Timestamp createTime= Timestamp.valueOf(LocalDateTime.now());
  private java.sql.Timestamp updateTime= Timestamp.valueOf(LocalDateTime.now());
}
